package cqueue.posting;

import java.util.List;

import cqueue.ListenerEvent;

/**
 * Posts an event to a local queue. 
 * 
 * @author Kristopher L. Kalish, James Madison University
 * @version 1 - March 29, 2008
 *
 */
public class LocalPostServiceStub implements PostService<ListenerEvent>
{
	List<ListenerEvent> events;
	
	public LocalPostServiceStub(List<ListenerEvent> events)
	{
		this.events = events; // keep a reference of the EventQueue's list.
	}
	
	public void postEvent(ListenerEvent event)
	{
		events.add(event);
	}
}
